﻿using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using SqlSugar;
using VOL.Entity.DomainModels;
using Yitter.IdGenerator;

namespace Base.Read.Controllers
{
    [Route("api/[controller]")]
    [ApiController]
    public class BaseReadController : ControllerBase
    {
        private readonly ISqlSugarClient _db;

        public BaseReadController(ISqlSugarClient db)
        {
            _db = db;
        }
        /// <summary>
        /// 测试1
        /// </summary>
        /// <returns></returns>
        [HttpPost("AddwareHouse")]
        public List<wareHouse> AddwareHouse()
        {

            var list= _db.Queryable<wareHouse>();
            return list.ToList();
        }
    }
}
